var vm = new Vue({
    el: '#main',
    data: {
        item: {}, //详情
        id: '', //圈子id
        page: 1,
        comt: [], //评论列表
        pid: '', //被回复人id
        token: '',
        resindex: '', //背回复的二级回复index
        cid: '', //评论id,用于删除评论
        content: ''
    },
})


var id = getUrlParam('id');

var Info = {
    init: function () {
        Info.content(); //详情加载
        Info.comments();
    },
    content: function () { //详情加载
        $.ajax({
            url: URL.path + '/circle/circle_detailh5',
            type: 'post',
            data: {
                id: id,
                terminalNo: '3'
            },
            success: function (data) {
                if (data.returnCode == 200) {
                    //alert(JSON.stringify(data.data))
                    data.data.imglength = data.data.circle_photo.length;
                    vm.item = data.data;
                }
            }
        })
    },
    comments: function () {
        $.ajax({
            url: URL.path + '/circle/circle_comments',
            type: "post",
            data: {
                id: id,
                type: '1',
                page: vm.page,
                terminalNo: '3'
            },
            success: function (data) {
                if (data.returnCode == 200) {
                    vm.comt = data.data
                }
            }
        })
    }
}
Info.init();





